package cn.kgc.springcloud.client;

import cn.kgc.springcloud.entity.Clazz;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("class-clazz")
//@Component
public interface ClazzClient {
    @GetMapping("/clazzs/{id}")
    Clazz getOne(@PathVariable Integer id);
}
